<?php
include("inc/global.inc");
$p_rs=mysql_query("select * from product where id='".$_GET['id']."' and p_sh=1");
$p_row=mysql_fetch_array($p_rs);
if(!$p_row[id]){
echo "<script>location='/error.html';</script>";
}
mysql_free_result($p_rs);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$p_row[p_title]?>，<?=$p_row[p_list]?>，<?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?></title>
<meta name="description" content="<?=$p_row[p_title]?>，<?=$p_row[p_list]?>，<?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商";}?>，<?=$p_row[p_keyword]?>"/>
<meta name="keywords" content="<?=$p_row[p_title]?>，<?=$p_row[p_list]?>，<?php if($m_row[catalog_id1]){echo "$m_row[catalog_1]，";}?><?php if($m_row['c_mainpro']){echo $m_row['c_mainpro']."，";}?><?=$m_row['m_cname']?>" />
<link href="/template/<?=$template?>/css/allcss.css" rel="stylesheet" type="text/css" />
<link href="/template/css/template.css" rel="stylesheet" type="text/css" />
<link href="/template/css/top1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("inc/top1.php")?>
<div class="main">
<?php include("inc/top2.php")?>
<div class="path size11"><a href="../index.html">首页</a> >> <a href="../product-list/1.html">产品展示</a> >><?php if($p_row[p_list]){?> <a href="../product-group/<?=$p_row[p_list_id]?>/1.html"><?=$p_row[p_list]?></a> >><?php }?> <?=mb_substr($p_row['p_title'],0,40,'utf-8')?></div>
<div class="left">
<?php include("inc/left.php")?>
</div>

<div class="right">
<div class="rightbox">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 728x90, 创建于 11-3-14 */
google_ad_slot = "5638832665";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="rightbox">
<div class="profile">
<div class="m1">
<div class="name size14"><?=$p_row[p_title]?></div>
<div class="propic">
<?php if(trim($p_row['picture'])){?><a href="http://img.sandib2b.cn/<?=$p_row['picture']?>" target="_blank"><img src="http://img.sandib2b.cn/<?=$p_row['picture']?>" width="236" height="178" alt="<?=$p_row[p_title]?>"></a><?php }else{?><img src="/images/prono134.gif" width="236" height="178"><?php }?>
<div class="but">
<ul>
<li class="a2">
<A href="#" style="CURSOR: hand" onclick="javascript:window.external.AddFavorite('http://<?=$_SERVER['HTTP_HOST']?>/product/<?=$p_row['id']?>.htm','<?=$p_row[p_title]?>')">&nbsp;收藏此信息</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.sandib2b.cn/upfile/<?=$p_row['picture']?>" target="_blank">图片放大</a>
</li>
</ul>
</div>
</div>
<div class="proinfo">
  <table>
    <tbody>
	<?php if(trim($p_row['p_pinpai'])){?>
      <tr>
        <td width="146" height="20" align="right">品牌：</td>
        <td width="233" height="20"><?=$p_row['p_pinpai']?></td>
      </tr>
	<?php }?>
	<?php if(trim($p_row['p_xinghao'])){?>
      <tr>
        <td height="20" align="right">型号：</td>
        <td height="20"><?=$p_row[p_xinghao]?></td>
      </tr>
	<?php }?>
	<?php if(trim($p_row['p_guige'])){?>
      <tr>
        <td height="20" align="right">规格：</td>
        <td height="20"><?=$p_row['p_guige']?></td>
      </tr>
	 <?php }?>
	<?php if(trim($p_row[p_price])){?>
      <tr>
        <td height="20" align="right">价格：</td>
        <td height="20"><?=$p_row[p_price]?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row[p_baozhuang])){?>
      <tr>
        <td height="20" align="right">包装：</td>
        <td height="20"><?=$p_row[p_baozhuang]?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row[p_shuliang])){?>
      <tr>
        <td height="20" align="right">总数量：</td>
        <td height="20"><?=$p_row[p_shuliang]?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row[p_cailiao])){?>
      <tr>
        <td height="20" align="right">材料：</td>
        <td height="20"><?=$p_row[p_cailiao]?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row[p_changdi])){?>
      <tr>
        <td height="20" align="right">产地：</td>
        <td height="20"><?=$p_row[p_changdi]?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row[p_jhtime])){?>
      <tr>
        <td height="20" align="right">交货期：</td>
        <td height="20"><?=$p_row[p_jhtime]?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row['p_renzheng'])){?>
      <tr>
        <td height="20" align="right">产品认证：</td>
        <td height="20"><?=$p_row['p_renzheng']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row[p_crz])){?>
      <tr>
        <td height="20" align="right">企业认证：</td>
        <td height="20"><?=$p_row[p_crz]?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row[p_minorder])){?> 
      <tr>
        <td height="20" align="right">最小起定量：</td>
        <td height="20"><?=$p_row[p_minorder]?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row[p_paytype])){?> 
      <tr>
        <td height="20" align="right">付款方式：</td>
        <td height="20"><?=$p_row[p_paytype]?></td>
      </tr>
	 <?php }?>
	  <tr>
        <td height="20" align="right">更新时间：</td>
        <td height="20"><?=date("Y-m-d",strtotime($p_row[p_addtime]))?></td>
      </tr>
    </tbody>
  </table>
</div>
<div class="onl"></div>
</div>
<div class="infobox">
<div class="size14 b">&nbsp;&nbsp;产品介绍</div>
<div class="info" style="word-wrap: break-word; word-break: normal;">
<?=unhtml($p_row['p_info'])?>
</div>
</div>
<div class="m1">
<div class="send_butt"><a href="http://www.sandib2b.cn/inquire/index.php?to_id=<?=$m_row[id]?>&subject=<?=urlencode($p_row['p_title'])?>" target="_blank"><img src="/template/images/iprice.gif" width="159" height="45" border="0"></a>   <a href="/member/tuoguan/buy.php?id=<?php echo $m_row['id'];?>" target="_blank"><img src="/Supply/images/contact.gif" alt="联系方式-<?=$m_row['m_cname']?>" width="157" height="43" border="0" /></a></div>
</div>
  <div class="onl"></div>
  </div>
</div>
<div class="rightbox">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 728x90, 创建于 11-3-14 */
google_ad_slot = "5638832665";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="rightbox">
<div class="path1 b">
<div class=moreright><A class="size11" href="../product-list/1.html">更多</A> </div>
相关产品</div>
<div class="probox">
<?
	$where = ($p_row['p_list_id']) ? "and p_list_id=".$p_row['p_list_id'] : '';
?>
<?php
$pl_rs=mysql_query("select * from product where member_id=".$member_id."  $where  and p_sh=1 limit 10");
while($pl_row=mysql_fetch_array($pl_rs)){
?>
<div class="prolist">
<a href="<?=$pl_row[id]?>.html"><?php if($pl_row[picture]){?><img src="http://www.sandib2b.cn/upfile/<?=$pl_row[picture]?>" width="100" height="100" alt="<?=$pl_row[p_title]?>" /><?php }else{?><img src="/images/InfoPic.gif" width="100" height="100" alt="<?=$pl_row[p_title]?>"/><?php }?></a>
  <dt><a href="<?=$pl_row[id]?>.html" title="<?=$pl_row[p_title]?>"><?=mb_substr($pl_row[p_title],0,12,'utf-8')?></a></dt>
</div>
<?php }mysql_free_result($pl_rs);?>

<div class="onl"></div>
</div>
</div>
</div>
<div class="onl"></div>
<div id="mian" class="topside20 downside20 side" align="center">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>


<?php include("inc/foot.php");
?>


</div>
</body>
</html>
